﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="MembersDetails.aspx.vb" Inherits="LondonItalianRestaurants.MembersDetails" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="SqlDataSource1">
        <Columns>
            <asp:BoundField DataField="FirstName" HeaderText="FirstName" 
                SortExpression="FirstName" />
            <asp:BoundField DataField="LastName" HeaderText="LastName" 
                SortExpression="LastName" />
            <asp:BoundField DataField="DateOfBirth" HeaderText="DateOfBirth" 
                SortExpression="DateOfBirth" />
            <asp:BoundField DataField="Gender" HeaderText="Gender" 
                SortExpression="Gender" />
            <asp:BoundField DataField="Address" HeaderText="Address" 
                SortExpression="Address" />
            <asp:BoundField DataField="Telephone" HeaderText="Telephone" 
                SortExpression="Telephone" />
            <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
            <asp:BoundField DataField="RegistrationDate" HeaderText="RegistrationDate" 
                SortExpression="RegistrationDate" />
            <asp:ImageField DataAlternateTextField="Portrait" DataImageUrlField="Portrait" 
                HeaderText="Portrait">
                <ControlStyle Height="100px" Width="100px" />
            </asp:ImageField>
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
        
        SelectCommand="SELECT [Portrait], [FirstName], [LastName], [DateOfBirth], [Gender], [Address], [Telephone], [Email], [RegistrationDate], [Dinerid] FROM [UserProfile] WHERE ([Dinerid] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="Dinerid" QueryStringField="Dinerid" 
                Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>
